package com.sqznkj.Service;

import com.sqznkj.Dao.certificateDao;
import com.sqznkj.entity.certificate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
public class certificateService {
    @Resource
    certificateDao dao;

    @Transactional
    public int add(certificate cer) {
        return dao.add(cer);
    }

    public List<certificate> getzs() {
        return dao.getzs();
    }

    public List<certificate> getzz() {
        return dao.getzz();
    }
}
